package com.example.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Description TODO
 * @Author dingchunlin
 * @Date 2023/12/27 21:57
 * @Version 1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Expenses {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String expensesType;

    private String cause;

    private Integer creatId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private Integer pendingPersonId;

    private Double totalAmount;

    private String status;

    @TableField(exist = false)
    private String createName;

}
